package com.sixin.iot.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.sql.Date;

public class MetWeatherData {
    private Long id;
    private String tid;
    private String addrid;
    private Date colltime;
    private float surrtemp;
    private float surrhumi;
    private float surrlight;
    private float soiltemp;
    private float soilhumi;
    private float atmopress;
    private float windspeed;
    private String windire;
    private String  weathertype;
    private float pm25;
    private float co2;
    private float co;
    private float so2;
    private float ch4;
    private float rainfall;
    private float ph;
    private int remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getAddrid() {
        return addrid;
    }

    public void setAddrid(String addrid) {
        this.addrid = addrid;
    }

    public Date getColltime() {
        return colltime;
    }

    public void setColltime(Date colltime) {
        this.colltime = colltime;
    }

    public float getSurrtemp() {
        return surrtemp;
    }

    public void setSurrtemp(float surrtemp) {
        this.surrtemp = surrtemp;
    }

    public float getSurrhumi() {
        return surrhumi;
    }

    public void setSurrhumi(float surrhumi) {
        this.surrhumi = surrhumi;
    }

    public float getSurrlight() {
        return surrlight;
    }

    public void setSurrlight(float surrlight) {
        this.surrlight = surrlight;
    }

    public float getSoiltemp() {
        return soiltemp;
    }

    public void setSoiltemp(float soiltemp) {
        this.soiltemp = soiltemp;
    }

    public float getSoilhumi() {
        return soilhumi;
    }

    public void setSoilhumi(float soilhumi) {
        this.soilhumi = soilhumi;
    }

    public float getAtmopress() {
        return atmopress;
    }

    public void setAtmopress(float atmopress) {
        this.atmopress = atmopress;
    }

    public float getWindspeed() {
        return windspeed;
    }

    public void setWindspeed(float windspeed) {
        this.windspeed = windspeed;
    }

    public String getWindire() {
        return windire;
    }

    public void setWindire(String windire) {
        this.windire = windire;
    }

    public String getWeathertype() {
        return weathertype;
    }

    public void setWeathertype(String weathertype) {
        this.weathertype = weathertype;
    }

    public float getPm25() {
        return pm25;
    }

    public void setPm25(float pm25) {
        this.pm25 = pm25;
    }

    public float getCo2() {
        return co2;
    }

    public void setCo2(float co2) {
        this.co2 = co2;
    }

    public float getCo() {
        return co;
    }

    public void setCo(float co) {
        this.co = co;
    }

    public float getSo2() {
        return so2;
    }

    public void setSo2(float so2) {
        this.so2 = so2;
    }

    public float getCh4() {
        return ch4;
    }

    public void setCh4(float ch4) {
        this.ch4 = ch4;
    }

    public float getRainfall() {
        return rainfall;
    }

    public void setRainfall(float rainfall) {
        this.rainfall = rainfall;
    }

    public float getPh() {
        return ph;
    }

    public void setPh(float ph) {
        this.ph = ph;
    }
    public int getRemark() {
        return remark;
    }

    public void setRemark(int remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id",getId())
                .append("tid",getTid())
                .append("addrid",getAddrid())
                .append("colltime",getColltime())
                .append("surrtemp",getSurrtemp())
                .append("surrhumi",getSurrhumi())
                .append("surrlight",getSurrlight())
                .append("soiltemp",getSoiltemp())
                .append("soilhumi",getSurrhumi())
                .append("atmopress",getAtmopress())
                .append("windspeed",getWindspeed())
                .append("windire",getWindire())
                .append("weathertype",getWeathertype())
                .append("pm25",getPm25())
                .append("co2",getCo2())
                .append("co",getCo())
                .append("so2",getSo2())
                .append("ch4",getCh4())
                .append("rainfall",getRainfall())
                .append("ph",getPh())
                .append("remark",getRemark())
                .toString();
    }
}
